<?php get_header(); ?>
<div id="container" class="cf">
<div id="main" <?php post_class()?>>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h3 class="archive">
<?php if (in_category(468)) : ?>
[Artist] 
<?php else : ?>
<?php endif; ?>
<?php the_title(); ?>
</h3>
<div class="thumbnail">
<img src="http://img.youtube.com/vi/<?php the_field('youtube'); ?>/default.jpg" alt="<?php echo substr(strip_tags(the_title()), 0, 30);  ?>" />
</div>
<?php if (in_category(17)) : ?>
<div id="frame"><iframe src="<?php the_field('youtube'); ?>" scrolling="no"></iframe></div>
<?php elseif (in_category(18)) : ?>
<meta http-equiv="refresh" content="0;URL=<?php the_field('youtube'); ?>">
<?php elseif (in_category(16)) : ?>
<?php elseif (in_category(468)) : ?>
<?php else : ?>
<div id="main_movie" class="singlep">
<object width="640" height="360">
  <param name="movie" value="https://www.youtube.com/v/<?php the_field('youtube'); ?>?cc_load_policy=1&hl=ja&cc_lang_pref=ja&modestbranding=1&rel=0&showinfo=1&color=red&iv_load_policy=3&version=3"></param>
  <param name="allowFullScreen" value="true"></param>
  <param name="allowScriptAccess" value="always"></param>
  <embed src="https://www.youtube.com/v/<?php the_field('youtube'); ?>?cc_load_policy=1&hl=ja&cc_lang_pref=ja&modestbranding=1&rel=0&showinfo=0&color=red&iv_load_policy=3&version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="360"></embed>
</object>
</div>
<?php endif; ?>
<?php if (in_category(468)) : ?>
<?php else : ?>
<div class="pmeta"><?php the_time('m.d.Y') ?> <span>&middot;</span> カテゴリー：<?php the_category(', ') ?></div>
<?php endif; ?>
<div class="entry">
<?php the_content(); ?>
</div>
<?php if (in_category(468)) : ?>
<?php else : ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<div class="ptags"><?php the_tags('<span class="posttag">タグ： ', ', ', '</span>'); ?><span class="postauth">投稿者：<a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php the_author_meta('display_name'); ?></a></span></div>
<?php endif; ?>
<?php endwhile; else: ?>
<h3>Not Found</h3>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
<?php if (in_category(468)) : ?>
<?php else : ?>
<div id="fb-root"></div>
<div class="fb-comments" data-href="<?php the_permalink(); ?>" data-num-posts="10" data-width="640" data-colorscheme="dark" mobile="off"></div>
<?php endif; ?>
<div class="fb-activity" data-site="http://8bitnews.asia/" data-width="640" data-height="300" data-header="false" data-colorscheme="dark" data-linktarget="_parent" data-border-color="#000000" data-font="tahoma" data-recommendations="true"></div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>